package com.shitou.springai1.admin.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("posts")
public class PostDto implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String stuOrTeaId;
    private String content;
    private Integer likeCount;
    private Integer commentCount;
    private Integer status;
    private LocalDate createTime;
    
    // 非数据库字段，用于前端展示
    @TableField(exist = false)
    private String nickName;
    @TableField(exist = false)
    private String imageUrl;
}
